package com.example.core.convert.context;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class RequestContext {
    private HttpServletRequest httpServletRequest;
    private HttpServletResponse httpServletResponse;

    public String getParameter(String key) {
        return httpServletRequest.getParameter(key);
    }

    public void setAttribute(String key, Object val) {
        this.httpServletRequest.setAttribute(key, val);
    }

    public RequestContext(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
        this.httpServletRequest = httpServletRequest;
        this.httpServletResponse = httpServletResponse;
    }
}
